//
//  HJDPofileController.m
//  JYHospital
//
//  Created by 胡金东 on 16/3/31.
//  Copyright © 2016年 胡金东. All rights reserved.
//

#import "HJDBBSController.h"
#import "RESideMenu.h"
//#import "HJDRootViewController.h"


@interface HJDBBSController ()<UIScrollViewDelegate>

@property (nonatomic,strong) UIScrollView * scroll;



@end

@implementation HJDBBSController

-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.navigationController.navigationBarHidden = YES;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    [self setUpNavigation];

    
    
}

-(void)setUpNavigation
{
    self.scroll = [[UIScrollView alloc]initWithFrame:[UIScreen mainScreen].bounds];
    self.scroll.delegate = self;
    self.automaticallyAdjustsScrollViewInsets = YES;
    self.scroll.showsHorizontalScrollIndicator = NO;
    self.scroll.showsVerticalScrollIndicator = YES;
    self.scroll.contentSize = CGSizeMake(HJDWidth, HJDHeight + 50);
    [self.view addSubview:self.scroll];
    
    CGFloat leftX = HJDHorizontalMargin;
    CGFloat leftY = 30 - 10;
    CGFloat leftW = 34;
    CGFloat leftH = 34;
    UIButton *navleftBtn = [[UIButton alloc]initWithFrame:CGRectMake(leftX, leftY, leftW, leftH)];
    [navleftBtn setBackgroundImage:[UIImage imageNamed:@"矢量智能对象侧"] forState:UIControlStateNormal];
    [navleftBtn addTarget:self action:@selector(MyCenterClick) forControlEvents:UIControlEventTouchUpInside];

    [self.scroll addSubview:navleftBtn];
    

}
-(void)MyCenterClick{
    
[self.sideMenuViewController presentLeftMenuViewController];
}

@end
